package cn.virens.database.serviceimpl;

import java.util.UUID;

import org.springframework.cache.annotation.CachePut;
import org.springframework.cache.annotation.Cacheable;
import org.springframework.stereotype.Service;

import cn.virens.database.service.CacaheTest;

@Service
public class CacaheTestImpl implements CacaheTest {
	@Override
	@Cacheable(value = "cache-test", key = "#key")
	public String get(String key) {
		return null;
	}

	@Override
	@CachePut(value = "cache-test", key = "#key")
	public String put(String key, String mark) {
		return mark + "/" + UUID.randomUUID().toString();
	}
}
